﻿@using SampleFacebookApp.Models
@using Microsoft.AspNet.Mvc.Facebook.Models
@model MyAppUser
@{
    ViewBag.Title = "Join the Political Revolution";
}

<article class="intro">
    <span id="profilePicture">
        @if (Model.ProfilePicture != null && Model.ProfilePicture.Data != null)
        {
             <img src="@Model.ProfilePicture.Data.Url" />
        }
     <div>
         <br /><br />
        <span class="label label-warning">Target @ViewData["tor"].ToString()</span>
        <span class="label label-warning">Joined @ViewData["dc"].ToString()</span>
        <br /><br />
        <div class="progress progress-striped">
            <div class="progress-bar progress-bar-warning" style="width: @ViewData["per"].ToString()%"></div>
        </div>

    </div>
    </span>
        <h3>Welcome @Model.Name </h3>
    <h4 class="subhead">Register your support to stop crime aginst women.</h4>

    <div>
        <div id="contact_form">
            @using (Html.BeginForm("JoinAAPPost", "Home", FormMethod.Get))
            {

                <table style="width: 487px;">
                    <tr>
                        <th style="width: 100px;">
                            <label for="name">Name:</label>
                        </th>
                        <td style="width: 385px;">
                            <input type="text" id="NameField" name="name" value="@Model.Name" placeholder="Please enter your full name" class="form-control" required />
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <label for="Age">Age:</label>
                            @Html.Hidden("dob", @Model.birthday)
                        </th>
                        <td>
                            <input id="age" name="age" placeholder="Please enter your age" class="form-control" required />
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <label for="email">Email:</label>
                        </th>
                        <td>
                            <input type="email" id="EmailAddressField" name="email" value="@Model.Email" placeholder="Please enter your email address" class="form-control" required />
                        </td>
                    </tr>

                    <tr>
                        <th>
                            <label for="Address">Address:</label>
                        </th>
                        <td>
                            <input type="text" name="address" id="address" value="@Model.Location.City" placeholder="Please enter your current address" class="form-control" required />
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <label for="District">District:</label>
                        </th>
                        <td>
                            <input type="text" name="district" id="district" placeholder="From which district you belogs to" class="form-control" required />
                        </td>
                    </tr>

                    <tr>
                        <th>
                            <label for="mobile">Mobile No:</label>
                        </th>
                        <td>
                            <input name="mobile" id="mobile" placeholder="Please enter your contactc number" class="form-control" />
                        </td>
                    </tr>
                    <tr>
                        <th></th>
                        <td>
                            <div class="fb-like" data-href="https://www.facebook.com/AAPwbengal" data-send="false" data-width="150" data-show-faces="false" data-font="arial" data-action="recommend"></div>
                            <input type="submit" value="Join the revolution" id="submit" name="submit" class="btn btn-primary " />
                            @if (Model.Email == "keshari.mukul@gmail.com")
                            {
                                @Html.ActionLink("DownloadData", "DownloadData")
                            }
                        </td>
                    </tr>
                </table>
            }
        </div>

    </div>
</article>

<article id="content">
</article>
